package com.baiduspring.dao.mapper;

import com.baiduspring.dao.entity.PrivateLetter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface PrivateLetterMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PrivateLetter record);

    int insertSelective(PrivateLetter record);

    PrivateLetter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PrivateLetter record);

    int updateByPrimaryKey(PrivateLetter record);

    Integer count(PrivateLetter privateLetter);

    List<PrivateLetter> selectByAddresseeOrderByCreateDateDesc(@Param("addressee") Long addressee);
}